package com.qk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.dto.ClueDto;
import com.qk.entity.Clue;
import com.qk.vo.OverviewVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ClueMapper extends BaseMapper<Clue> {
    /**
     * 线索列表
     */
    Page<Clue> listClues(Page<Clue> cluePage, ClueDto clueDto);

    /**
     * 获取线索
     */
    Clue getClueById(Integer id);
@Update("update clue set status = #{status},next_time=null,update_time=#{updateTime} where id = #{id}")
    void updateId(Clue clue);

    OverviewVo getClueOverview();
}
